home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 16 / fpc225_3.zip / F-PCHELP.ZIP / FWORDS.HLP < prev    next >
Text File  |  1988-07-05  |  2KB  |  56 lines

  1. \ FWORDS.HLP    File searching                          by Tom Zimmer
  2.  
  3. look$           ( --- a1 )
  4.         An array of 32 characters that holds the string we are currently
  5.         searching for.
  6.  
  7. donfile         ( --- )
  8.         A function to DO-ON-all-FILEs. This defered word is set before
  9.         the function FALLON is called to perform something on all files
  10.         in the current directory that match the file spec.
  11.  
  12. fstime          ( --- a1 )
  13.         A primitive variable used to hold a flag. This variable tells
  14.         us if we have already printed the filename once.
  15.  
  16. .file-once      ( --- )
  17.         Print the filename of the file we are processing, but only the
  18.         first time we are called.
  19.  
  20. searchfile      ( --- )
  21.         Search the current file for the string in LOOK$. If the string
  22.         is found, print the line number, and the line contents.
  23.  
  24. $>tib           ( a1 --- )
  25.         Move the string at a1 into the Terminal Input Buffer.
  26.  
  27. withname        ( --- a1 )
  28.         A flag to tell us if we are printing the filename with each
  29.         first line of a file we print.
  30.  
  31. .firstline      ( --- )
  32.         Print the first line of the current file.
  33.  
  34. fallof          ( func | file_specs --- )
  35.         A generalized function. By setting the defered word DONFILE,
  36.         a function can be performed on all files matching the filespec
  37.         the user has given. See FLOOK, INDEX, and FPRINT for examples
  38.         of how to use this word.
  39.  
  40. xflook          ( search_string file_specs --- )
  41.         Same as FLOOK, but case sensitive. See also FLOOK.
  42.  
  43. flook           ( search_string file_specs --- )
  44.         Search all files in file_spec for search_string. Print each
  45.         occurance found to the display with a line number.
  46.  
  47. index           ( file_spec --- )
  48.         display an index of the first line of each file that matches
  49.         the file_specs included on the line following INDEX.
  50.  
  51. fprint          ( file_specs --- )
  52.         Print listing files of all files that match the file_specs
  53.         included on the line following FPRINT.
  54.  
  55.  
  56.